package us.mooresr.webtroopmanager.client.events;

import us.mooresr.webtroopmanager.shared.EventSummary;

import com.google.gwt.event.shared.GwtEvent;

public class EventAddedEvent extends GwtEvent<EventAddedHandler>{
	
	private final EventSummary eventSummary;
	public static final Type<EventAddedHandler> TYPE = new Type<EventAddedHandler>();

	
	public EventAddedEvent(EventSummary eventSummary) {
		super();
		this.eventSummary = eventSummary;
	}

	@Override
	protected void dispatch(EventAddedHandler handler) {
		handler.onAddEvent(this);
	}

	@Override
	public com.google.gwt.event.shared.GwtEvent.Type<EventAddedHandler> getAssociatedType() {
		return TYPE;
	}

	public EventSummary getEventSummary() {
		return eventSummary;
	}
	
	

}
